package com.ruoyi.user.service.impl;

import com.ruoyi.common.core.cg.pojo.Leader;
import com.ruoyi.user.mapper.LeaderMapper;
import com.ruoyi.user.service.LeaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LeaderServiceImpl implements LeaderService {
    @Autowired
    private LeaderMapper mapper;

    /**
     * 通过店铺ID查询对应的团长
     * @param id
     * @return
     */
    @Override
    public Leader findLeaderByStoreId(Integer id) {
        return mapper.findLeaderByStoreId(id);
    }
}
